<?php
	class applicationController
	{
		public $browser;
		public $optList;

		public function applicationController($browser,$optList)
		{
			$this->browser = $browser;
			$this->optList = $optList;
		}

		public function execute()
		{

			if(!isset($this->optList[0])) return;

			foreach($this->optList as $testcase) {
				$class = $testcase["Testcase"];
				$function = $testcase["Keyword"];
				require_once "Application/testcases/".$class.".php";
				$testCaseObj = new $class($this->browser);
				$testCaseObj->$function();
			}

		}

	}
?>